import { defineStore } from 'pinia'
import { UserInfo } from "../types/user";
import { Config,Statistics } from "../types/config";
export const useUserStore = defineStore({
  id: 'user',
  state: () => {
    return {
      userInfo: <UserInfo><unknown>[],
      systemInfo: <Config><unknown>[],
      statistics: <Statistics><unknown>[],
    }
  },
  persist: {
    storage: localStorage,
    paths: ['userInfo', 'systemInfo','statistics'],
  }
})